package com.haima.sage.bigdata.api.service.impl;

import com.haima.sage.bigdata.api.dao.ComputeResultRepository;
import com.haima.sage.bigdata.api.entity.ComputeResult;
import com.haima.sage.bigdata.api.service.ComputeResultService;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class ComputeResultServiceImpl implements ComputeResultService {
    private final ComputeResultRepository repository;

    public ComputeResultServiceImpl(ComputeResultRepository repository) {
        this.repository = repository;
    }

    @Override
    public Optional<ComputeResult> findById(String appkey) {
        return this.repository.findById(appkey);
    }
}
